package com.example.base.security.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@ApiModel(description = "角色模块")
@Data
public class SysRoleVo {

    @ApiModelProperty("角色id")
    private Integer roleId;

    @ApiModelProperty("角色名称")
    @NotBlank(message = "角色名称")
    private String roleName;

    @ApiModelProperty("角色编号")
    @NotBlank(message = "角色编号")
    private String roleno;

    /**
     * 是否启用
     */
    @ApiModelProperty("是否启用")
    private Boolean isEnable;

    /**
     * 排序字段
     */
    @ApiModelProperty("排序字段")
    private Integer sortNum;

    /**
     * 角色备注
     */
    @ApiModelProperty("角色备注")
    private String roleNote;
}
